﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DonationTracker.Account.Admin
{
    public partial class AssignCharity : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void gvAssignCharity_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            DropDownList ddl =
                (DropDownList)gvAssignCharity.Rows[e.RowIndex].FindControl("DropDownList1");

            dsAssignCharity.UpdateParameters["charityID"] =
                new Parameter("charityID", System.Data.DbType.Int32, ddl.SelectedValue);
        }
    }
}